<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #ball {
            width: 500px;
            height: 500px;
        }
    </style>
</head>

<body>
    <div id="ball"></div>
</body>
<script src="../../assets/lib/echarts/echarts-5.2.1.min.js"></script>
<script src="../../assets/lib/echarts/echarts-liquidfill@3.min.js"></script>
<script>
    let value = 66 / 88;
    var chart = echarts.init(document.getElementById('ball'));
    var option = {
        title: {
            text: '通过比例',
            left: 'center',
            top: 120,
            textStyle: {
                color: '#656565',
                fontWeight: 'normal',
                fontSize: 15
            }
        },
        series: [{
            type: 'liquidFill',
            radius: '75%',
            center: ['50%', '50%'],
            data: [0.5, 0.45], // data个数代表波浪数
            color: ['#8190E3', '#71B1FC'],
            outline: { // 轮廓设置
                show: true,
                borderDistance: 10, // 边框与球中间间距
                itemStyle: {
                    borderWidth: 2,
                    borderColor: '#ECECF8'
                }
            },
            itemStyle: {
                normal: {
                    shadowColor: 'rgba(22, 22, 22, 0.5)',
                    shadowBlur: 10
                }
            },
            backgroundStyle: {
                borderWidth: 5,
                borderColor: '#EEF2FD',
                shadowColor: '#008DCE',
                color: '#fff'
            },
            label: {
                position: ['50%', '35%'],
                formatter: (value * 100).toFixed(1) + '%',
                textStyle: {
                    color: '#313131',
                    fontSize: 30
                }
            }
        }]
    };
    chart.setOption(option);
</script>

</html>